//
//  ViewController.m
//  HLWorkSpace
//
//  Created by 胡林虎 on 2017/8/17.
//  Copyright © 2017年 胡林虎. All rights reserved.
//

#import "ViewController.h"
#import <ModuleA/ModuleA.h>
#import <YYCache/YYCache.h>

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    Pepole *ple = [[Pepole alloc] init];
    [ple applyModuleA];
    
}
-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{

//    YYCache *cache = [[YYCache alloc] initWithName:@"Person"];
//    NSString *str = (NSString *)[cache objectForKey:@"Name"];
//    NSLog(@" str  name == %@",str);

    TestView *view = [[TestView alloc] init];
    view.frame = CGRectMake(100, 100, 100, 100);
    view.backgroundColor =[UIColor purpleColor];
    [view setUIView];
    [self.view addSubview:view];

    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
